<template>
    <form class="searchbar">
        <div class="searchbar-input">
            <input type="search" placeholder="输入关键词搜索">
            <a href="#" class="searchbar-clear"></a>
        </div>
        <a href="#" class="button searchbar-submit">搜索</a>
    </form>
</template>

<script type="text/javascript">
    export default{

        mounted () {
            //搜索框
            myApp.searchbar('.searchbar', function(query){
                console.log('keywords: ' + query)
            })

        }
    }
</script>
